<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    public function index(Request $request)
    {
        return view('admin.index', [
            'request' => $request
        ]);
    }

    public function logout(Request $request)
    {
        $request->session()->forget('memberId');
        return redirect('admin/login');
    }
}